package com.yuyou.train.user.service;

import java.util.List;

import com.yuyou.train.service.api.user.entity.UserHw;
import com.yuyou.train.user.vo.req.ReqUserHwCorrect;
import com.yuyou.train.user.vo.resp.RespUserHw;
import com.yuyou.train.util.bean.Pagination;
import com.yuyou.train.util.bean.ResBoolSimpleInfo;

public interface IUserHwService {
    int deleteByPrimaryKey(String id);

    int insert(UserHw record);

    UserHw selectByPrimaryKey(String id);
    
    UserHw selectUserHwByStatus(String userId,String lessonId,String status);
    
    UserHw selectOnlyUserHwLock(String userId,String lessonId);
    
    List<UserHw> findUserHw(UserHw userHw);

    int updateByPrimaryKeySelective(UserHw record);
    
    ResBoolSimpleInfo<String> addUserHw(UserHw record);
    
    int finishUserHw(UserHw record);
    
    List<UserHw> findUserHwPageList(Pagination<UserHw> p);
    
    int findUserHwPageCount(Pagination<UserHw> p);
    
    ResBoolSimpleInfo<RespUserHw> hwDetail(String id,String teacherId);
    
    ResBoolSimpleInfo<String> correctHw(ReqUserHwCorrect reqUserHwCorrect,String teacherId) throws Exception;
    
    
}